<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>let 命令</title>
 <script>
// 代码 1：不完全解构
let [x, y] = [1, 2, 3];
console.log(x, y); //1 2
// 代码 2：嵌套数组不完全解构
let [a, [b], c] = [1, [2, 3], 4];
console.log(a, b, c); //1 2 4
// 代码 3：跳过元素
let [i, , j] = [1, 2, 3];
 console.log(i, j); //1 3
 </script>
 </head>
 <body></body>
 </html>